package io.renren.modules.quickService.controller;

import io.renren.common.utils.R;
import io.renren.modules.quickService.entity.UserExtraEntity;
import io.renren.modules.quickService.service.UserExtraService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 用户基本审核
 *
 * @author zenger380
 * @email zenger380@163.com
 * @date 2018-10-69 18:53:08
 */
@RestController
@RequestMapping("quickService/userExtraAudit")
public class UserExtraAuditController {
    @Autowired
    private UserExtraService userExtraService;

    /**
     * 审核
     */
    @RequestMapping("/audit")
    @RequiresPermissions("quickService:userExtra:audit")
    public R save(@RequestBody UserExtraEntity userExtra){
        userExtraService.audit(userExtra);

        return R.ok();
    }

}
